<template>

  <baidu-map :center="{lng: 116.403765, lat: 39.914850}" :zoom="11">
    <label>关键词：<input v-model="keyword"></label>
    <label>地区：<input v-model="location"></label>
    <bm-view class="map"></bm-view>
    <bm-control :offset="{width: '10px', height: '10px'}">

    </bm-control>
    <bm-local-search :keyword="keyword" :auto-viewport="true" :location="location"></bm-local-search>
  </baidu-map>
</template>
<script>
export default {
  data () {
    return {
      location: '郑州',
      keyword: '垃圾站'
    }
  }
}
</script>
<style>
.map {
  width: 100%;
  height: 700px;
}
</style>
